<template>
  <div class="amis-page">
    <AmisRender
        :pageCode="pageCode"
        :pageName="pageName"
    >
    </AmisRender>
  </div>
</template>

<script setup lang="ts">

import {useRoute} from "vue-router";
import AmisRender from "@/base/views/component/amisRender.vue";
import {getMenuByPath} from "@/base/ts/service/AuthService.ts";
import {env} from "@/base/ts/utils/env.ts";

const route = useRoute();
const pageCode: any = route.params.pageCode || route.meta.pageCode || '404';
const pageName: any = getMenuByPath(route.fullPath)?.name || env("project_name");
</script>

<style scoped lang="scss">
.amis-page {
  height: 100%;
}
</style>
